package org.jeecg.modules.orderForm.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import org.jeecg.modules.orderForm.entity.AggregationResult;
import org.jeecg.modules.orderForm.entity.OrderForm;
import org.jeecg.modules.orderForm.entity.VisitorAggregationsResult;
import org.jeecg.modules.orderForm.mapper.OrderFormMapper;
import org.jeecg.modules.orderForm.service.IOrderFormService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import java.util.List;
import java.util.Map;

/**
 * @Description: 订单
 * @author： jeecg-boot
 * @date：   2021-03-30
 * @version： V1.0
 */
@Service
public class OrderFormServiceImpl extends ServiceImpl<OrderFormMapper, OrderForm> implements IOrderFormService {

    @Override
    public List<OrderForm> getGroupBytakeOrdersMoney(Integer num) {
        return baseMapper.getGroupBytakeOrdersMoney(num);
    }

    @Override
    public List<AggregationResult> queryAggregationsByMonth(Map<String, Object> map) {
        return baseMapper.queryAggregationsByMonth(map);
    }

    @Override
    public AggregationResult queryTotalAggregations(Map<String, Object> params) {
        return baseMapper.queryTotalAggregations(params);
    }

    @Override
    public List<String> queryDistinctYearList() {
        return baseMapper.queryDistinctYearList();
    }

    @Override
    public IPage<VisitorAggregationsResult> queryVisitorAggregations(IPage<VisitorAggregationsResult> page, Map<String, Object> map) {
        return baseMapper.queryVisitorAggregations(page,map);
    }
}
